package tpo.lmhprovider.lmhprovider.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pojo.Unit;
import tpo.lmhprovider.lmhprovider.dao.UnitMapper;
import tpo.lmhprovider.lmhprovider.service.UnitService;

import java.util.List;
import java.util.Map;

@Service
public class UnitServiceImpl implements UnitService {
    @Autowired
    UnitMapper unitMapper;
    @Override
    public List<Unit> getUnit(Map map) {
        return unitMapper.getUnit(map);
    }

    @Override
    public int updateUnit(Map map) {
        return unitMapper.updateUnit(map);
    }

    @Override
    public int addUnit(Map map) {
        return unitMapper.addUnit(map);
    }

    @Override
    public int delUnit(Map map) {
        return unitMapper.delUnit(map);
    }
}
